package com.ruoyi.table.controller;

import com.ruoyi.table.domain.Family;
import com.ruoyi.table.domain.ResponseEntity;
import com.ruoyi.table.service.FamilyService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 韩国伟
 * @version 1.0
 * @description: 商\专(家)登录
 * @date 2023/2/23 23:28
 */
@RestController
@RequestMapping("/fam")
public class LoginController {

    @Resource
    private FamilyService familyService;

    @PostMapping("/login")
    public ResponseEntity login(@RequestBody Family family){
        return familyService.login(family);
    }
}
